package com.hs.mapper;

import com.hs.entity.TbRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestMapping;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface TbRoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TbRole record);

    int insertSelective(TbRole record);

    TbRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbRole record);

    int updateByPrimaryKey(TbRole record);

    public List<Map<String,Object>> queryAll() ;

    public int[] insertBatch(@Param("params") Object[][] params);

    public int deleteByRoleId(@Param("roleId") Integer roleId) ;
}